import {EntityId, PageQueryParams} from "kf-web-library";

export interface JournalPersonagePageQueryParams extends Partial<PageQueryParams> {
  searchText?: string;
  ids?: EntityId[];
  enable?: boolean; //是否启用
}

export interface JournalPersonage{
  deleted: number; //删除标记
  id: number; //主键
  type: string; //人物类型 PersonageType
  coverImg: string; //封面
  name: string; //姓名
  message: string; //寄语
  enable: boolean; //是否启用
  seq: number; //排序
  createTime: string; //创建时间
  createUserId: number; //${column.comment}
  modifyTime: string; //修改时间
  modifyUserId: number; //${column.comment}
}



export interface JournalPersonage_Create{
  type: string; //人物类型 PersonageType
  coverImg: string; //封面
  name: string; //姓名
  message: string; //寄语
  seq: number; //排序
}


export interface JournalPersonage_Modify extends JournalPersonage_Create {
  id: EntityId;
  enable: boolean;  //是否启用
}

export interface JournalPersonage_Patch extends Partial<JournalPersonage_Modify> {
  id: EntityId;
}

